package com.pubinfo.passbook.common.model.http.response.GetAutoCreateWriteoff;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "WriteoffMessage", description = "财辅返回结果")
public class WriteoffMessage implements Serializable {
  private static final long serialVersionUID = -9129699432886956076L;
  
  @JacksonXmlProperty(localName = "TYPE")
  @ApiModelProperty("选项：S 成功,E 错误\n" +
      "根据明细信息项中的状态来判断，如果明细项中的状态有一个失败，则全部失败")
  private String TYPE;
  
  @JacksonXmlProperty(localName = "errorMsg")
  @ApiModelProperty("错误信息")
  private String errorMsg;
  
  @JacksonXmlElementWrapper(localName = "items")
  @JacksonXmlProperty(localName = "item")
  @ApiModelProperty("明细项")
  private List<WriteoffItem> items;
  
}